#ifndef _IM_SERVER_CREATE_MESSAGE_TASK_H_
#define _IM_SERVER_CREATE_MESSAGE_TASK_H_

#include <string>

#include "ImServiceCommon_types.h"
#include "http_request.h"
#include "rpc_thread_manager.h"

namespace imserver {

using apache::thrift::concurrency::Runnable;

class CreateMessageTask : public Runnable {
 public:
  CreateMessageTask(const ImMessage & message);
  virtual void run();
 private:
  ImMessage message_;
};

}

#endif // _IM_SERVER_CREATE_MESSAGE_TASK_H_

